public class qwe {
    public int minimizedStringLength(String ss) {
        int[] a=new int[26];
        int count=0;
        char[] s=ss.toCharArray();
        for(int i=0;i<s.length;i++) a[s[i]-'a']++;
        for(int i=0;i<a.length;i++){
            if(a[i]!=0) count++;
        }
        return count;
    }
}
